<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>欢迎页面</title>
    <script src="/js/jquery/jquery.min.js"></script>
    <script>
        //1.定时器,3秒后跳转到主页面
        $(function () {
            setTimeout(function () {
                $("#img").attr("src","/img/2s.jpg")
            },1000)
            setTimeout(function () {
                $("#img").attr("src","/img/1s.jpg")
            },2000)
            setTimeout(function () {
                window.location.href="/index.html";
            },3000)
        })

    </script>
</head>
<body>
<img src="/img/3s.jpg" width="100%" id="img">
</body>
</html>